home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / includes / pmcqerrs.h < prev    next >
C/C++ Source or Header  |  1996-11-18  |  8KB  |  134 lines

  1. /*
  2.  *--- PageMakerCQErrs.h --------------------------------------------------
  3.  * Copyright (c) 1995, Adobe Systems, Inc.  All rights reserved.
  4.  *
  5.  * For PageMaker plug-ins, these are the most common category of errors.
  6.  *
  7.  * $Revision:   1.4  $
  8.  *
  9.  *
  10.  *------------------------------------------------------------------------
  11.  */
  12. #ifndef __PageMakerCQErrs__
  13. #define __PageMakerCQErrs__
  14.  
  15. #include "PMErrors.h"
  16.  
  17. enum
  18. {
  19.     CQ_NO_ERR                = 0,
  20.     CQ_SUCCESS                = 0,            // same as SUCCESS.
  21.     CQ_IGNORED                = 0,
  22.  
  23.     CQ_OPERATION_COMPLETE,                    // for occaisions that completion requires a non-zero value.
  24.                                             // This cannot be used as an error code.
  25.     CQ_DONT_DISCARD = CQ_OPERATION_COMPLETE,    // tell PM not to free the Addition yet
  26.     CQ_DISK_FULL    = 94,                // Disk is full
  27.     
  28.         // These are internal errors that should never be displayed.
  29.     CQ_CTOR_INVALID_ARGS    = CQ_ER_BASE+1,    // 7201: Object constructor failed due to bad args.
  30.     CQ_CTOR_FAILED,                            // 7202: General constructor failure.
  31.     CQ_NEW_FAILED,                            // 7203: a new failed.
  32.     CQ_BAD_OBJECT,                            // 7204: Attempt to use an invalid object.
  33.     CQ_COERCION_FAILED,                        // 7205: Type coercion failed.
  34.     CQ_NOT_IMPLEMENTED,                        // 7206: unction is not currently implemented.
  35.  
  36.         // These are exportable errors:
  37.     CQ_BUFFSIZE_TOO_SMALL,                    // 7207: buffer size is too small.
  38.     CQ_NSF_MEMORY,                            // 7208: Insuffiecient Memory to proceed
  39.     CQ_INVALID_ARGS,                        // 7209: one or more invalid arguments. internal, no # in message.
  40.     CQ_NOT_ENOUGH_ARGS,                        // 7210: Not enough arguments supplied.
  41.     CQ_BAD_ARG_PACKET,                        // 7211:Improper binary argument packet.
  42.     CQ_SYS_FAILED,                            // 7212:some system operation failed.
  43.     CQ_FAILURE            = CQ_SYS_FAILED,    // 7212:generalized failure code.
  44.     CQ_DIDNT_HANDLE,                        // 7213:operation was not performed.
  45.     CQ_CANT_HANDLE,                            // 7214:operation not performed by this module.
  46.     CQ_INVALID_STATE,                        // 7215:operation invalid in current module state.
  47.     CQ_RES_NOT_FOUND,                        // 7216:resource not found
  48.     CQ_CANT_LOAD_ADD,                        // 7217:cannot load Addition library
  49.     CQ_ADD_NOT_FOUND,                        // 7218:Addition resource not found
  50.     CQ_ADD_INIT_FAILED,                        // 7219:Addition nitialization failed
  51.     CQ_INVAL_INT_VER,                        // 7220:Invalid interface version
  52.     CQ_ADDRES_NOT_FOUND,                    // 7221:Registration resource not found
  53.     CQ_NO_ARGS,                                // 7222:No Arguments supplied.
  54.     CQ_INVALID_CQ_ARG,                        // 7223:invalid argument to command or query. takes arg # in message.
  55.     CQ_ADDN_ERR,                            // 7224:Error returned from the Addition.
  56.     CQ_ADDN_CANT_ERR,                        // 7225:Error from the Addition with "Cant" string.
  57.     CQ_PARS_BAD_CMD,                        // 7226:Parser can't regognize command
  58.     CQ_PARS_BAD_ARG,                        // 7227:Parser can't parse argument list
  59.     CQ_OLD_CMD,                                // 7228:Command is no longer supported
  60.     CQ_INVALID_OBJECTID,                    // 7229:Object id. doesn't exist in pub (or on current page(s))    
  61.     CQ_LO_INVALID_MODE,                        // 7230:Command or query works only in story editor.
  62.     CQ_SE_INVALID_MODE,                        // 7231:Command or query works only in layout view.
  63.     CQ_SEARCH_STATUS,                        // 7232:No match found, or search complete.
  64.     CQ_CHANGEALL_STATUS,                    // 7233:No matches found. Search complete.
  65.     CQ_SPELL_STATUS,                        // 7234:No spelling errors detected, or spelling check complete.
  66.     CQ_NOPDATA,                                // 7235:No private data found
  67.     CQ_INVALID_TARGET,                        // 7236:Specified target does not exist
  68.     CQ_PDATA_ALREADY_EXISTS,                // 7237:Private data already exists for specified target
  69.     CQ_INVALID_CLASS,                        // 7238:Invalid target class
  70.     CQ_STRING_TOO_BIG,                        // 7239:Private data string too big
  71.     CQ_NO_INITIAL_SEARCH,                    // 7240:Command must follow find or change command
  72.     CQ_INITDICTERROR,                        // 7241:Error initializing language dictionary
  73.     CQ_DUPWORDDICTERROR,                    // 7242:Word is already in user dictionary
  74.     CQ_ADDTODICTERROR,                        // 7243:Unable to add new word to user dictionary
  75.     CQ_NOWORDDICTERROR,                        // 7244:Word was not found in user dictionary
  76.     CQ_ACCESSDICTERROR,                        // 7245:Error accessing language dictionary
  77.     CQ_OPENDICTERROR,                        // 7246:Could not open user dictionary
  78.     CQ_MIXED_LOCKERROR,                        // 7247:Could not group locked and unlocked segments
  79.     CQ_INTF_NOTIMPLEMENTED,                    // 7248:Interface is not impelemented.
  80.     CQ_SEEK_ERROR,                            // 7249:Error on seeking
  81.     CQ_PDATA_NOT_OPEN,                        // 7250:Requested private data has not been opened
  82.     CQ_ACCESS_DENIED,                            // 7251:Access denied
  83.     CQ_PDATA_ALREADY_OPEN,                    // 7252:Private data has already been opened
  84.     CQ_PRNTSTRM_WRONG_TIME,                    // 7253:PSA - tried to access print stream at a wrong time
  85.     CQ_PRNTSTRM_NOT_SETUP,                    // 7254:PSA - is not before/after job/page setup
  86.     CQ_PRNTSTRM_NOT_PROLOG,                    // 7255:PSA - is not before/after prolog 
  87.     CQ_PRNTSTRM_NOT_ENOUGH_VM,                // 7256:PSA - insufficient VM for dict
  88.     CQ_PRNTSTRM_NOT_A_COMMMENT,                // 7257:PSA - string sent is not a valid PS comment 
  89.     CQ_ACTIVE_LAYER_CANTWRITE,                // 7258:Active layer is locked or hidden.
  90.     CQ_INVALID_EVENTID,                        // 7259:Invalid Event ID for PM Register/unregister
  91.     CQ_OBJACC_NO_MORE_OBJECTS,                // 7260:ObjAcc - no more objects on page
  92.     CQ_OBJACC_OBJ_NOT_FOUND,                // 7261:ObjAcc - requested object not found 
  93.     CQ_OBJACC_OBJ_NOT_LINKED,                // 7262:ObjAcc - given object is not linked (for GetObjLinkInfo()) 
  94.     CQ_OBJACC_INVALID_PAGENUM,                // 7263:ObjAcc - given page number is not valid
  95.     CQ_NO_LINEBREAK_INFO,                    // 7264:CIText - no linebreak information for given story and line number
  96.     CQ_NO_MORE_ILGS,                        // 7265:CIText - no more ILGs associated with this story
  97.     CQ_SCRIPTABORT,                            // 7266:Script Palette - user requested script to be aborted
  98.     CQ_IMSAVE_NOT_INITIALIZED,                // 7267:CIMSAVE - not intialized
  99.     CQ_OBJACC_TURNPAGE_FAIL,                // 7268:ObjAcc - cant turn page
  100.     CQ_FRAME_FAILURE,                        // 7269:CIFrame - general frame failure code
  101.     CQ_FRAME_INVALID_SHAPE,                    // 7270:CIFrame - Bad shape for frame
  102.     CQ_FRAME_CANNOT_OPEN_TABLE,                // 7271:CIFrame - Cannot open table?
  103.     CQ_FRAME_OBJ_NOT_FOUND,                    // 7272:CIFrame - Frame not found
  104.     CQ_FRAME_EMPTY_FRAME,                    // 7273:CIFrame - Frame is not supposed to be empty
  105.     CQ_FRAME_NOT_EMPTY_FRAME,                // 7274:CIFrame - Frame is not supposed to be full
  106.     CQ_FRAME_NO_MORE_LINKS,                    // 7275:CIFrame - Frame has no next/prev link
  107.     CQ_FRAME_CANNOT_LINK_FRAMES,            // 7276:CIFrame - Specified frames cannot be linked
  108.     CQ_IMGACC_INVALID_OBJTYPE,                // 7277:CImagAcc - Object must be a bitmap type.
  109.     // Insert new errors here:
  110.     
  111.     CQ_LAST_ERR                                // Last CQ Error               // Last CQ Error.
  112. };
  113.  
  114. enum CQLocation 
  115. {
  116.     CQ_XADN = CQ_AC_BASE+1,                                 //  Errors from the Addition XComponent.
  117.     CQ_XAE,                                                                 //  Errors from the Apple IAC XComponent.
  118.     CQ_XDDE,                                                                //  Errors from the DDE XComponent.
  119.     CQ_XPRS,                                                                //  Errors from the XParser class.
  120.     CQ_XIPS,                                                                //  Errors from the Internal XParser.
  121.     CQ_XDTA,                                                                //  Errors from the XPMData object.
  122.     CQ_QWRY,                                                                //  Errors from the Query Services.
  123.     CQ_CMND,                                                                //  Errors from the Command Services.
  124.     CQ_XMEM,                                                                //      Errors from the XMemory object.
  125.     CQ_ADDREG                                                               //      Errors in registering Addition.
  126. };
  127.  
  128.  
  129. #endif
  130.  
  131. // end of PageMakerCQErrs.h
  132.  
  133.  
  134.